package com.atguigu.recursion;

public class Test {
    public static void main(String[] args) {
        print2();
    }

    public static void print(int n){
        for (int i = 1; i <=n ; i++) {
            for (int j=1;j<=n-i;j++){
                System.out.print(" ");
            }
            for (int j=1;j<=2*i-1;j++){
                System.out.print("*");
            }
            System.out.println();
        }

    }
    public static void print2(){
        for (int i = 1; i <=9 ; i++) {
            for (int j = 1; j <=i ; j++) {
                System.out.print(i+"X"+j+"="+ i*j +" ");
            }
            System.out.println();
        }
    }
}
